// enum Color {
//     Red = 0xff0000,
//     Green = 0x00ff00,
//     Blue - 0x0000ff
// }

enum IPAddr {
    IPV4(u8, u8, u8, u8),
    // IPV6(u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8, u8)
}

fn main() {
    let localhost: IPAddr = IPAddr::IPV4(127, 0, 0, 1);
    match localhost {
        IPAddr::IPV4(a, b, c, d) => {
            println!("{}, {}, {}, {}", a, b, c, d);
        }
        // _ => {}
    }
}
